package edu.sctu.practice.class02.hujie.cgs.practice02.test19;

/**
 * Created by hj on 2015/10/27.
 */
//正方形继承矩形
public class Square extends Rectangle {
    public static void main(String[] args) {
        Rectangle square = new Rectangle();
        square.absoluteSymmetry = true;
        square.number = 4;//????既然继承了矩形 为嘛不是四条边的 而是继承图形的类？？？何不直接继承图形？？
        System.out.println("它的边数为：" + square.number);
        System.out.println("它的维数为：" + square.dimension);
        System.out.println("它是否绝对对称：" + square.absoluteSymmetry);
    }
}

